package com.kla.power.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kla.power.entity.NoticeEntity;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 工单通知 Mapper 接口
 * </p>
 *
 * @author WuZH
 * @since 2023-06-24
 */
@Mapper
public interface NoticeMapper extends BaseMapper<NoticeEntity> {

    @Insert ( value = "INSERT INTO notice_info(id,userId,taskId,createTime) value(#{noticeEntity.id},#{noticeEntity.userId},#{noticeEntity.taskId},#{noticeEntity.createTime})")
    Integer saveSingle(@Param ( "noticeEntity" ) NoticeEntity noticeEntity);

}
